package com.up.upzl.biz.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.up.upzl.base.service.BaseService;
import com.up.upzl.biz.domain.ArticleCategory;
import com.up.upzl.biz.domain.ArticleCategory.Type;

/**
 * 文章分类管理
 * 
 * @author youke
 *
 */
public interface ArticleCategoryService extends BaseService<ArticleCategory, Long> {

	/**
	 * 根据父级ID和分类名称查询二级分类
	 * 
	 * @return Page<Object>
	 */
	Page<ArticleCategory> findByCondition(Long parentId, String name, Pageable page);

	/**
	 * 根据类型查询分类信息
	 * 
	 * @return Page<Object>
	 */
	List<ArticleCategory> findByTypeX(Type type, Boolean publish, Boolean mold);

	/**
	 * 根据父级id查询分类
	 * 
	 * @return Page<Object>
	 */
	List<ArticleCategory> findByParentId(Long ParentId);

}
